define(function(require, exports, module) {

      require("{remoteUrl}css/mnm/public.css");
      require("{remoteUrl}css/mnm/index.css");
      var $ = require('zepto'),
	  ejs = require('ejs'),
          lang = require('{baseSea}I18N/{locale}'),
          tpl = require('{tplUrl}index.tpl');
 
      function Index() {};

      module.exports = Index;

      Index.prototype.render = function() {
           if ($('#index_box').length < 1) { 
	      this._init();
           } else {
              $('#index_box').show();
           }
      };

      Index.prototype._init = function() {
          this._ejs();
          this._bindEvt(); 
      };

      Index.prototype._bindEvt = function() {
           $('#index_box').find('.joinus').on('tap',function(){
              window.location.href = '#name=joinus'; 
           });
      
           $('#index_box').find('.singin').on('tap',function(){
              window.location.href = '#name=singin'; 
           });
      };

      Index.prototype._ejs = function() {
           var html = ejs.render(tpl,lang); 
               $('body').append(html);  
      };
});

